package com.xb.loan.admin.bean.system;


import com.xb.loan.util.DateHelper;

import javax.persistence.Entity;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 项目名称 : oss-center
 * 创建日期 : 2015年12月23日
 * 类  描  述 : T_Oss_Operator表记录映射类
 */
@Entity
public class OssOperator {
    private String operatorId;

    private String loginName;

    private String loginPwd;

    private String name;

    private String department;

    private String company;

    private String phone;

    private String position;

    private Integer status;

    private Date createTime;

    private Long partnerId;
    
    private Integer type;
    
    
    
    /**
     * @return Returns the partnerId.
     */
    public Long getPartnerId() {
        return partnerId;
    }

    /**
     * @param partnerId The partnerId to set.
     */
    public void setPartnerId(Long partnerId) {
        this.partnerId = partnerId;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId == null ? null : operatorId.trim();
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd == null ? null : loginPwd.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department == null ? null : department.trim();
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company == null ? null : company.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public String getCreateTimeFormat(){
    	return DateHelper.formatDate(null , createTime);
    }
    public String getCreateTimeDesc(){
        if(createTime != null){
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            return df.format(createTime);
        }
        return "";
    }

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
    
    
}